package com.mi.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mi.system.dto.query.LogQueryDTO;
import com.mi.system.entity.Log;
import com.mi.system.vo.LogVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Log mapper
 *
 * @author jin_huaquan
 * @version 1.0
 * @date 2021/11/1 13:48
 */
@Mapper
public interface LogMapper extends BaseMapper<Log> {

    /**
     * list log
     *
     * @param page  page info
     * @param query query params
     * @return log list
     */
    Page<LogVO> selectByPage(Page page, @Param("query") LogQueryDTO query);
}
